<template>
  <van-nav-bar
    :title="title"
    left-arrow
    :border="false"
    @click-left="onClickLeft"
    :z-index="9999"
    :fixed="true"
  />
</template>

<script>
import { NavBar } from "vant";
export default {
  components: { [NavBar.name]: NavBar },
  props: ["title"],
  methods: {
    onClickLeft() {
      this.$router.history.go(-1);
    }
  }
};
</script>